package com.fdd.spring.aop.homework;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CalTest {
    @Test
    public void test(){
        ApplicationContext ioc = new ClassPathXmlApplicationContext("beans11.xml");
        Cal cal = (Cal)ioc.getBean("myCal");
        cal.cal1(10);
        System.out.println("-----------------");
        cal.cal2(10);

    }
}
